<template>
  <nav>
    <ul>
      <li>
        <span>北京</span>
        <span class="icon-arrow-bottom"></span>
      </li>
      <li>
        <tabs v-model="active" class="sub-tab-container">
          <tab title="正在热映" to="/home/movie/hot"></tab>
          <tab title="即将上映" to="/home/movie/comingSoon"></tab>
        </tabs>
      </li>
      <li><icon name="search" size="0.2rem" /></li>
    </ul>
  </nav>
</template>


<script>
import { Icon, Tabs, Tab } from "vant";
export default {
  name: "SubTab",
  components: {
    Icon,
    Tabs,
    Tab
  },
  data: function() {
    return {
      active: 0
    };
  }
};
</script>

<style lang="scss" scoped>
nav {
  width: 100%;
  position: static;
  bottom: 0;
  height: 0.6rem;
  font-size: 0.18rem;
  color: #666666;
  ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    li{
      list-style: none;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      .sub-tab-container{
        $bg:transparent !important;
        background: $bg;
        >>> .van-tabs__nav .van-tabs__nav--line{
          background: $bg;
        }
      }
    }
    li:nth-child(2){
        flex: 4;
    }
    li:nth-child(1){
        flex: 1;
    }
    li:nth-child(3){
        flex: 1;
    }
  }
}
</style>